ROLLBACK, ROLLBACK ALL Statements ---------------------------------------------------------------------------- Action Rescind all or part of the operations of a transaction (a series of ISAM database operations). Syntax ROLLBACK savepoint% ROLLBACK ALL Remarks The savepoint% is an integer that identifies a savepoint within a transaction -- a series of ISAM database operations that is either committed as a whole or rescinded. Use the savepoint function to designate a savepoint, which marks the beginning of a subset of operations that can be rescinded. If you specify a savepoint% argument, ROLLBACK returns the data affected by a transaction to its state at that savepoint. If you do not specify a savepoint% argument, ROLLBACK returns the data affected by the transaction to its state at the previous savepoint, or at the beginning of the transaction if there are no intermediate savepoints. ROLLBACK ALL rescinds all operations in a transaction and returns the data to its initial state at the beginning of the transaction. Use BEGINTRANS to indicate the beginning of a transaction. Use COMMITTRANS to commit all operations since the most recent BEGINTRANS statement. See Also BEGINTRANS, COMMITTRANS, SAVEPOINT Example See the BEGINTRANS statement programming example, which uses the ROLLBACK statement.